﻿<%@ Page Title="" ResponseEncoding="UTF-8" Language="C#" MasterPageFile="~/Page.Master" AutoEventWireup="true" CodeBehind="Avaliar.aspx.cs" 
Inherits="AvaliacaoWeb.Avaliar" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">

    <h3><asp:Label runat="server" ID="lblTitulo"></asp:Label></h3>
    <h4><asp:Label runat="server" ForeColor="Chocolate" ID="lblAvaliando"></asp:Label></h4>

    <div class="alert alert-error" runat="server" visible="false" id="lblMsgErro">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        <strong>Alerta!</strong> Existem questões sem resposta.
    </div>

    <asp:GridView ID="dtGrid" runat="server" AutoGenerateColumns="False" 
        CssClass="table table-bordered" 
        ClientIDMode="Static" onrowdatabound="dtGrid_RowDataBound">
        <Columns>
            <asp:TemplateField ShowHeader="false">                
                <ItemTemplate>                                        
                    <asp:Label ClientIDMode="Static" Font-Bold="true" Font-Size="Medium" ID="questao" runat="server" Text='<%# Bind("questao") %>'></asp:Label>
                    <asp:RadioButtonList RepeatDirection="Horizontal" ID="radOpcoes" class="form-inline semborda" ClientIDMode="Predictable" runat="server">                                                                  
                    </asp:RadioButtonList>

                    <asp:TextBox ClientIDMode="Static" ID="codcon" runat="server" style="display:none;"  Text='<%# Bind("codcon") %>'></asp:TextBox>
                    <asp:TextBox ClientIDMode="Static" ID="lblId"  runat="server" style="display:none;"  Text='<%# Bind("numqts") %>'></asp:TextBox>

                </ItemTemplate>                            
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    
    <input runat="server" clientidmode="Static" type="hidden" id="quantidade" value=""/>        
    <div class="control-group">
        <div class="controls " style="text-align: center;" >            
            <asp:Button runat="server" clientidmode="Static" ID="btnGravar" type="submit" class="btn btn-success" 
                Text="Salvar Alterações" onclick="btnGravar_Click" />

            <asp:Button runat="server" clientidmode="Static" ID="btnVoltar" type="submit" class="btn btn-danger" 
                Text="Voltar" onclick="btnVoltar_Click" />
        </div>
    </div>
    
</asp:Content>
